<%= start_form_tag :action=> "signup" %>

<div title="Account signup" id="signupform" class="form">
  <h3>Signup</h3>
  <%= error_messages_for 'user' %><br/>
  
  <h3> Privacy Protected Data (will NEVER be shared with medical research community)<h3>
  <label for="user_login">Desired login:</label><br/>
  <%= text_field "user", "login", :size => 30 %><br/>
  <label for="user_password">Choose password:</label><br/>
  <%= password_field "user", "password", :size => 30 %><br/>
  <label for="user_password_confirmation">Confirm password:</label><br/>
  <%= password_field "user", "password_confirmation", :size => 30 %><br/>
  <br>
  <h3>Public profile data (may be used to aid medical research)<h3>
  <label for="profile_sex">Sex:</label><br/>
  <%= 
    options = User::SEX_TYPES
    select("profile", "sex", options)
  %><br>
  <label for="profile_age">Age:</label><br/>
  <%=
    ages = []
    for i in 1...100
        ages << [i.to_s, i]
    end
    options = [["Age",""]] + ages
    select("profile", "age", ages)
    
  %>
  <br><br>
  
  

<input type="submit" value="Signup &#187;" class="primary" />

<%= end_form_tag %>

